package upload;

/**
 * 
 * @author CSDN
 *
 */
public class UploadInfo {
	
    private long fileSize = 0;
    private long writtenSize = 0;
    private String status = "end";

    public UploadInfo() {}

    public UploadInfo(long fileSize, long writtenSize, String status) {;
        this.fileSize = fileSize;
        this.writtenSize = writtenSize;
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public long getFileSize() {
		return fileSize;
	}

    public long getWrittenSize() {
		return writtenSize;
	}

	public boolean isInProgress() {
        return "start".equals(status) || "progress".equals(status);
    }
    
}
